//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['Wheel - Bandl & Aviations','Canal Club','Richmond, VA','Saturday','5/4/2024','5:00 PM','6314353','Wheel---Bandl---Aviations-5-4-2024'],['Alpha Wolf','Canal Club','Richmond, VA','Tuesday','5/7/2024','7:00 PM','6244142','Alpha-Wolf-5-7-2024'],['Cloud Nothings','Canal Club','Richmond, VA','Saturday','5/11/2024','7:30 PM','6304347','Cloud-Nothings-5-11-2024'],['L7','Canal Club','Richmond, VA','Monday','5/13/2024','7:30 PM','6314236','L7-5-13-2024'],['Drain','Canal Club','Richmond, VA','Wednesday','5/15/2024','6:00 PM','6314349','Drain-5-15-2024'],['Kublai Khan TX','Canal Club','Richmond, VA','Sunday','5/19/2024','7:30 PM','6253840','Kublai-Khan-TX-5-19-2024'],['Maylene and the Sons of Disaster','Canal Club','Richmond, VA','Wednesday','5/22/2024','7:00 PM','6275078','Maylene-and-the-Sons-of-Disaster-5-22-2024'],['Aaron West And The Roaring Twenties','Canal Club','Richmond, VA','Tuesday','6/18/2024','7:00 PM','6234100','Aaron-West-And-The-Roaring-Twenties-6-18-2024'],['Eidola','Canal Club','Richmond, VA','Wednesday','6/26/2024','6:00 PM','6342525','Eidola-6-26-2024'],['The Early November','Canal Club','Richmond, VA','Tuesday','7/16/2024','7:30 PM','6319582','The-Early-November-7-16-2024'],['Tomb Mold & Horrendous','Canal Club','Richmond, VA','Thursday','7/25/2024','8:00 PM','6406501','Tomb-Mold---Horrendous-7-25-2024'],['SeeYouSpaceCowboy','Canal Club','Richmond, VA','Tuesday','7/30/2024','6:00 PM','6404312','SeeYouSpaceCowboy-7-30-2024'],['The Warped Tour Band','Canal Club','Richmond, VA','Friday','8/16/2024','8:00 PM','6379334','The-Warped-Tour-Band-8-16-2024'],['Drake Bell','Canal Club','Richmond, VA','Wednesday','8/27/2070','7:00 PM','4417869','Drake-Bell-8-27-2070']],'The Canal Club','http://www.ticketnetwork.com/ticket/The-Canal-Club-events.aspx');